[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
\xmlflush{#1}\blank[preference,line] \stopxmlsetups \startxmlsetups xml:line \xmlflush{#1}\blank[samepage,none] \stopxmlsetups \startbuffer[test] The lines are there! The lines are there! The lines are there! \stopbuffer \starttext \samplefile{lorem} \xmlprocessbuffer{test

[NTG-context] \par and \startlines

2024-04-26 Thread denis.maier
xml:stanza \xmlflushlinewise{#1}\par %this has no effect \stopxmlsetups \startxmlsetups xml:line \xmlflush{#1} \stopxmlsetups \startbuffer[test] The lines are there! The lines are there! \stopbuffer \starttext This works: \startlines The lines are there! The lines

[NTG-context] Re: Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-25 Thread Gerion Entrup
I solved it, although it's kinda hacky. I'm pretty sure that publications.citevariants.short is not meant to be called directly. Do you know why `context.getdetail(dataset, tag, "author")` does not work in render_cite? It always returns nil. ``` \setupinteraction[state=start] \s

[NTG-context] Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-23 Thread Gerion Entrup
[state=start] \startbuffer[testdata] @Book{knuth1, author = {Donald E. Knuth}, title = {TEX and METAFONT. New directions in typesetting}, year = {1979}, publisher = {Addison-Wesley}, } @Article{someother, author = {Some Person and Some Otherperson}, title

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
-imp-sbl] \startbuffer [bib] @Article{na2006, title={Volcanoes \word{of} New Mexico}, year={2006}, journal={New Mexico Earth Matters}, publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources}, volume={6}, number={1}, location={Socorro, New Mexico} } @Book{clark1989, author

[NTG-context] Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
? Here is a minimum working example: \usemodule[publ-imp-sbl] \startbuffer [bib] @Article{na2006, title={Volcanoes \word{of} New Mexico}, year={2006}, journal={New Mexico Earth Matters}, publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources}, volume={6}, number={1}, location

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Gerion Entrup
form). It is more less also > > described here [1]. > > - Highlight publications of a certain author with an extra char (e.g. > > '>') > > > > Here is a minimal example (lets assume, every occurrence of Knuth > > should be highlighted): ``` > > \setupintera

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Alan Braslau via ntg-context
hted): ``` > \setupinteraction[state=start] > > \startbuffer[testdata] > @Book{knuth1, > author = {Donald E. Knuth}, > title = {TEX and METAFONT. New directions in typesetting}, > year = {1979}, > publisher = {Addison-Wesley}, > } > @Article{someo

[NTG-context] Customize citation format of a bibliography (use the short form as reference format)

2024-04-15 Thread Gerion Entrup
the short form). It is more less also described here [1]. - Highlight publications of a certain author with an extra char (e.g. '>') Here is a minimal example (lets assume, every occurrence of Knuth should be highlighted): ``` \setupinteraction[state=start] \startbuffer[testdata] @Book{knu

[NTG-context] Re: Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread Wolfgang Schuster
idn't find an explanation in https://wiki.contextgarden.net/Command For example, these two pages exist : - https://wiki.contextgarden.net/Command/startbuffer - https://wiki.contextgarden.net/Command/_startbuffer If it is on purpose: - What is the purpose, and which page should contain which doc

[NTG-context] Re: Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread Henning Hraban Ramm
et/Command For example, these two pages exist : - https://wiki.contextgarden.net/Command/startbuffer - https://wiki.contextgarden.net/Command/_startbuffer If it is on purpose: - What is the purpose, and which page should contain which documentation? The command pages which start with an

[NTG-context] Re: Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread Wolfgang Schuster
: - https://wiki.contextgarden.net/Command/startbuffer - https://wiki.contextgarden.net/Command/_startbuffer If it is on purpose: - What is the purpose, and which page should contain which documentation? The command pages which start with an underscore are probably leftovers when Taco changed a page f

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
Hi all, Is it on purpose that 128 pages "https://wiki.contextgarden.net/Command/ " start with a space character ? I didn't find an explanation in https://wiki.contextgarden.net/Command For example, these two pages exist : - https://wiki.contextgarden.net/Command/startbuff

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-10 Thread Hans Hagen
d you mean you will add > this feature for next updates? we're talking outlines so that is paths which implies no search but you can do this (Keith and/or Hraban will explain and/or wikify it) \starttext \startbuffer[MyText]      \definedfont[name:texgyrepagellabold*d

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-09 Thread seyal zavira
ed, blue) > > ; > > \stopMPpage > > > > so a single path option (no picture) > > > > Hans > > > > > > Thank you so much for the sample examples > > it would be great to also make text select able in outpu

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-08 Thread Hans Hagen
hs which implies no search but you can do this (Keith and/or Hraban will explain and/or wikify it) \starttext \startbuffer[MyText] \definedfont[name:texgyrepagellabold*default]foo f o o% \stopbuffer \startbuffer[MyText] \framed[align=normal,frame=off]{\input{tufte}}% \stopbuffer \setb

[NTG-context] Re: incosistent output of --- dash

2024-04-07 Thread vm via ntg-context
\starttext \startbuffer \starttabulate[|T] \NC U+0002D \NC - \NC -- \NC --- \NC\NR \NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR \NC U+02012 \NC ‒ \NC ‒‒ \NC ‒‒‒ \NC\NR \stoptabulate \stopbuffer \nohyphencollapsing \getbuffer \setupbodyfont[pagella] \getbuffer \dohyphencollapsing \getbuffer

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Hans Hagen
be the wrong symbol in the document, there are many dashes in unicode which look similar in the input and output files. \starttext \startbuffer \starttabulate[|T] \NC U+0002D \NC - \NC -- \NC --- \NC\NR \NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR \NC U+02012 \NC ‒ \NC ‒‒ \NC ‒‒‒ \NC\NR \stop

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Wolfgang Schuster
ere are many dashes in unicode which look similar in the input and output files. \starttext \startbuffer \starttabulate[|T] \NC U+0002D \NC - \NC -- \NC --- \NC\NR \NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR \NC U+02012 \NC ‒ \NC ‒‒ \NC ‒‒‒ \NC\NR \stoptabulate \stopbuffer \getbuffer \setupbodyfont[

[NTG-context] upload

2024-04-01 Thread Hans Hagen
back to the obsolete \LMTX\ mode. Like: \startbuffer \usemodule[math-goodriddance] \goodriddancemath Who wants to solve the equation \m {x + 1 = 4} or deal with the function \m {x \mapsto \root [3] {x}}, when we have AI around the corner to help us out with simple and silly things

[NTG-context] (again) \xmlinlineprettyprinttext double hyphens

2024-03-24 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \startbuffer[demo] mtxrun --script check file \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{code}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:code \xmlprettyprinttext{#1}{none

[NTG-context] issue with \xmlinlineprettyprinttext

2024-03-20 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \startbuffer[demo] a --b c a --b c \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc|code|inlinecode}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1

[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
=footer] \setupheadertexts[\CONTEXT\ imposition test] \showframe \setupbackgrounds [text][text][background=color,backgroundcolor=lightgray] % Where the block of pages is placed on the sheet % (relevant if there is space left over.) \setuplayout [location=middle,marking=on] \startbuffer[Fakepage

[NTG-context] Re: issue with typing in footnotes

2024-03-17 Thread Wolfgang Schuster
% \stopfoo \startbuffer yyy \stopbuffer \startfoo xxx \typebuffer zzz \stopfoo \stoptext end example Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Pablo Rodriguez via ntg-context
e. Many thanks for your reply, Wolfgang. Now I have the minimal sample: \startbuffer[demo] author text \stopbuffer \starttext \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc}{xml:*} \xmlsetsetup{\xmldocument} {(div|section)[@id='h

[NTG-context] Re: Local alternative to \input

2024-03-05 Thread Henning Hraban Ramm
Am 04.03.24 um 10:43 schrieb Denis Maier via ntg-context: Hi, Aren’t environments used for setups (and not for textual content). Maybe a buffer may be what you want ? https://wiki.contextgarden.net/Command/startbuffer Yes, buffers are the way to go for (textual) contents, while setups

[NTG-context] Re: Local alternative to \input

2024-03-04 Thread Denis Maier via ntg-context
Hi, Aren’t environments used for setups (and not for textual content). Maybe a buffer may be what you want ? https://wiki.contextgarden.net/Command/startbuffer Best, Denis Von: Jeroen Gesendet: Montag, 4. März 2024 06:15 An: mailing list for ConTeXt users Betreff: [NTG-context

[NTG-context] missing metadata in LMTX

2024-03-03 Thread Pablo Rodriguez via ntg-context
Dear list, this issue has been bugging me for some time: \startbuffer[demo] author title text \stopbuffer \starttext \startxmlsetups xml:initialize \xmlsetsetup{#1}{code|meta|text}{xml:*} \stopxmlsetups \xmlregistersetup

[NTG-context] BUG: colour spilling in btxrendering

2024-02-01 Thread Alexandre Christe
Dear list, It seems with one of the latest lmtx this old reported issue (https://www.mail-archive.com/ntg-context@ntg.nl/msg84988.html) is back. MWE: \setupinteraction[state=start,color=red,style=] \setupbtx[aps:cite][alternative=entry] \usebtxdefinitions[aps] \startbuffer [bib] @ARTICLE

[NTG-context] Re: Status of Asymptote

2024-01-03 Thread Jeroen
the filter module: https://github.com/adityam/filter Using that you could define an asymptote environment so that: \startbuffer[asymptote-preamble] \stopbuffer \starttext \startasymptote % Asymptote figure \stopasymptote \stoptext saves the content of the asymptote-preamble and the figure

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Aditya Mahajan
to obtain simple integration for asymptote using the filter module: https://github.com/adityam/filter Using that you could define an asymptote environment so that: \startbuffer[asymptote-preamble] \stopbuffer \starttext \startasymptote % Asymptote figure \stopasymptote \stoptext saves th

[NTG-context] Re: underbrace label across two lines

2023-12-20 Thread Dean Hung
Hi Mikael, Thanks for your reply -- I was able to get great results after using the \startbuffer ... \stopbuffer approach. I'm still a bit of a beginner with ConText so I wasn't clear on what the meaning of the $ symbols in your reply? The reason I have been using the underbraces

[NTG-context] Re: underbrace label across two lines

2023-12-20 Thread Mikael Sundqvist
t; \underbrace[mindepth=0.5cm]{\tf x+y+z}_{\vrule width 0pt height > 0.5cm\relax\text{firstline secondline}} > > I have tried using \\ and \crlf, but to no avail. > > Any help would be greatly appreciated! > > Dean Hi, Hans will add some annotation mechanism (already on my compute

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-17 Thread Hans Hagen via ntg-context
On 12/17/2023 11:22 PM, Gavin via ntg-context wrote: 1. How do I avoid redrawing diagrams with every typeset? The globe above takes about 0.7s, which is not bad, but it adds up in a book with many diagrams. \startbuffer[demo] \usemodule [luageo] \startMPpage GlobeDiameter = 10cm

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster
{} and \tfrac{} ? \frac switches the math style while \tfrac (textstyle), \dfrac (displaystyle) and \sfrac (scriptstyle) enforce a certain style. begin example \startbuffer[frac] \frac{1}{2} + \dfrac{1}{2} - \tfrac{1}{2} + \sfrac{1}{2} \stopbuffer \starttext \startformula \getbuffer[frac

[NTG-context] Re: Buffer and \input content as input for \processtokens, etc.

2023-12-06 Thread Hans Hagen
On 12/6/2023 8:26 PM, Jairo A. del Rio wrote: Hi, list! My question is just like that: how do I pass buffers or \input content to \processtokens. What I have done so far: \tolerant\protected\def\foo#={\ifparameter#1\or\oof{#1}\fi} \protected\def\oof#1{<#1>} \startbuffer[ofo] % Outpu

[NTG-context] Buffer and \input content as input for \processtokens, etc.

2023-12-06 Thread Jairo A. del Rio
Hi, list! My question is just like that: how do I pass buffers or \input content to \processtokens. What I have done so far: \tolerant\protected\def\foo#={\ifparameter#1\or\oof{#1}\fi} \protected\def\oof#1{<#1>} \startbuffer[ofo] % Output: Ths not a anymore! Th{i{s {is} not a {question} a

[NTG-context] Converting XHTML captions to ConTeXt captions

2023-11-26 Thread Thangalin
I'd like to capture a caption and apply it to the block-level element that immediately follows. In the MWE, is there a more "ConTeXt way" to accomplish the task of adding captions to tables, figures, blockquotes, etc? % SOT \startbuffer[demo] Caption 1 table 1 with caption table

[NTG-context] Re: xmlpos values doubled

2023-11-21 Thread Benjamin Buchmuller
xmldepth give weird results. > > With this minimal sample: > > \startbuffer[text] > first level > second level > third level > third level > > second level > third level > third level > > second level > third level > third level > > >

[NTG-context] Re: Combining python and lua

2023-10-26 Thread Alexandre Christe
ile},  bufferbefore=init,  output={\externalfilterbasefile.out},  readcommand=\typefile,  read=no,] \startbuffer[init] from sympy import * \stopbuffer \starttext \startluacode  local deg2rad = [[  %\startsympy  print(latex(rad(%angleVal%)))  %\stopsympy ]] local calcTrigFunct

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hamid,Idris
nd related Unicode control characters Hi, I found it ... \startbuffer \definedfont[almfixed*default]hello w\zwnj o\zwj r\zwnj l\zwj d \stopbuffer \getbuffer \start \setcharacterstripping[1] \getbuffer \stop so now, being its only user, you have to wikify it ... Ah, there it is! Many tha

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hans Hagen
Hi, I found it ... \startbuffer \definedfont[almfixed*default]hello w\zwnj o\zwj r\zwnj l\zwj d \stopbuffer \getbuffer \start \setcharacterstripping[1] \getbuffer \stop so now, being its only user, you have to wikify it ... Hans

[NTG-context] Re: XML: flush to lua function

2023-09-12 Thread Taco Hoekwater
arly safe when operating on nested structures.) > Best, > Denis > \startbuffer[test] > > > > A short title > asdf asdf asdf jklö jklö jklö > > > A longer title bla bla bla bla bla bla bla bla > > asdf asdf asdf jklö jkl

[NTG-context] Re: XML: flush to lua function

2023-09-12 Thread denis.maier
Ok, I've found a way, see below. But maybe someone has some nice lua (or other) tricks to share... (I'm not sure accessing t.dt[1] is particularly safe when operating on nested structures.) Best, Denis \startbuffer[test] A short title asdf asdf asdf jklö jklö jklö A longer

[NTG-context] XML, multiple spaces encoded as %20 get merged into one space

2023-09-06 Thread denis.maier
(xml:link)})] \stopxmlsetups \startbuffer[test] https://iiif.ub.unibe.ch/presentation/v2.1/berner-inkunabeln/manifest/Inc%20IV%2076%20%20Spiegel%20vorn_Teigstempel"/> https://iiif.ub.unibe.ch/presentation/v2.1/berner-inkunabeln/manifest/Inc%20IV%2076%20%20Spiegel%20vorn_Teigstempel"

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread Hans van der Meer via ntg-context
iggo.nl>Betreff: [NTG-context] ifxmlselfempty Is it possible that  the new \ifxmlselfempty has reversed its outcome? Or did I something wrong in this MWE?Here an MWE. yours sincerelydr. Hans van der Meer   \startbuffer[test]!not empty node!\stopbuffer \startxmlsetups xml:mysetups   \xmlsetsetup{\xm

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread denis.maier
\ifxmlselfempty has reversed its outcome? Or did I something wrong in this MWE? Here an MWE. yours sincerely dr. Hans van der Meer \startbuffer[test] !not empty node! \stopbuffer \startxmlsetups xml:mysetups \xmlsetsetup{\xmldocument}{something|emptynode|notemptynode}{xml:*} \stopxmlsetups

[NTG-context] ifxmlselfempty

2023-09-03 Thread Hans van der Meer via ntg-context
Is it possible that  the new \ifxmlselfempty has reversed its outcome? Or did I something wrong in this MWE?Here an MWE. yours sincerelydr. Hans van der Meer xmlsetup-template.pdf Description: Adobe PDF document \startbuffer[test]!not empty node!\stopbuffer\startxmlsetups xml:mysetups

[NTG-context] Re: attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
\xmlall{#1}{./node} > \crlf > Execute \type{\xmlfilter{#1}{./node[@type=="cleanup"]}} > \xmlfilter{#1}{./node[@type=="cleanup"]} > \crlf > \stopxmlsetups > \startxmlsetups demo:attribute:node > callin

[NTG-context] attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
ush{#1} \crlf \stopxmlsetups \startbuffer[attribute] no attribute attribute type = cleanup \stopbuffer \startbuffer[attribute2] no attribute attribute type=cleanup \stopbuffer \starttext \ConTeXt\ version\contextversion\blank \xmlprocessbuffer{demo}{attribute}{} \stoptext xml-tex-attribu

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-25 Thread denis.maier
o match \stopxmlsetups \startxmlsetups xml:whatever Yes \stopxmlsetups \startbuffer[test] Yes No \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \stoptext ___ If your question is of interest to others a

[NTG-context] XML: Correct usage of hash symbol in url

2023-08-25 Thread denis.maier
est=\xmlatt{#1}{href})]} % gives me two hashes in the Link %{\goto{\xmlflush{#1}}[url(https://uv-v4.netlify.app/#?manifest=\xmlatt{#1}{xlink:href})]} \par % does not work {\goto{\xmlflush{#1}}[url(\xmlatt{#1}{href})]} \stopxmlsetups \startbuffer[test] ht

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-25 Thread denis.maier
c")]}{Yes}{No} \par % run, but no match % 5 \xmldoifelse{#1}{.[contains(@class,'abc')]}{Yes}{No} \par % causes an error % 6 \xmldoifelse{#1}{.[find(@class,"abc")]}{Yes}{No} \par % causes an error \stopxmlsetups \startxmlsetups xml:whatever Yes \stopxmlsetups \s

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-24 Thread Hans Hagen
\xmlfilter{#1}{./find(attribute('class'), 'abc')/command(xml:whatever)} \xmldoifelse{#1}{./attribute('class')/contains('abc')} {Yes}{No} \stopxmlsetups \startxmlsetups xml:whatever Yes \stopxmlsetups \startbuffer[test] Yes No \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \stoptext

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-24 Thread Thomas A. Schmitz
startcolor { "blue" } lxml.flush (t) context.stopcolor () else context.startcolor { "red" } lxml.flush (t) context.stopcolor () end end \st

[NTG-context] xmldoif: checking for contents of attribute

2023-08-24 Thread denis.maier
')/command(xml:whatever)} \xmldoifelse{#1}{./attribute('class')/contains('abc')} {Yes}{No} \stopxmlsetups \startxmlsetups xml:whatever Yes \stopxmlsetups \startbuffer[test] Yes No \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \stoptext

[NTG-context] Re: Better option for a macro with lots of arguments

2023-08-23 Thread Hans Hagen via ntg-context
} { \startsection[title={Resumen}] \documentvariable{englishabstract} \stopsection } \doifdocumentvariable {spanisabstract} { \startsection[title={Palabras clave}] \documentvariable{spanishabstract} \stopsection } ... \stopsetups \startbuffer english

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Michael Löscher
ove output? Michael --- xml data: \startbuffer[xmlcontent]       What it is    2023-08-01    Description Another text             hd1    Header 1    Text of Header 1           

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Thomas A. Schmitz
er" which makes it different again. The other elements contain a tag that they all have in common. What could be the appropriate xml setups to generate the above output? Michael --- xml data: \startbuffer[xmlcontent]         What it is   2023-08-01          

[NTG-context] XML processing beginner's question

2023-08-21 Thread Michael Löscher
"Header" which makes it different again. The other elements contain a tag that they all have in common. What could be the appropriate xml setups to generate the above output? Michael --- xml data: \startbuffer[xmlcontent] What it is

[NTG-context] Enable interaction on custom apa cite variant

2023-08-19 Thread Jethro Djan
Hi, I would like a variant of cite per the APA specification that removes the bracket when quoted in mathematical definitions, theorems, etc. I could of course do it manually for reach using right= and left= but I didn't want to do it every time. I have come up with this MWE: \startbuffer[ref

[NTG-context] Font switching, default features, and a request

2023-08-13 Thread Hamid,Idris
Dear gang, Consider the following example: == \setupdirections[bidi=global,method=one] \startTEXpage[offset=1em,width=14in] \definedfont[almfixed*arabic] \switchtobodyfont[almfixed*arabic] \switchtobodyfont[almfixed] % \addff{arabic} \startbuffer[] \startlines الثَّعْلَبُ

[NTG-context] Re: Pass string into text background graphic

2023-08-11 Thread Hans Hagen
doesn't always appear. Instead, there's a small gap along the top border where the title should be. Am I going about this the wrong way? % SOT \startbuffer[demo] Text Goes Here Different Text Goes Here \stopbuffer \startxmlsetups xml:xhtml \xmlsetsetup{\xmldocument}{*}{-} \xmlsetsetup

[NTG-context] Pass string into text background graphic

2023-08-11 Thread Thangalin
a small gap along the top border where the title should be. Am I going about this the wrong way? % SOT \startbuffer[demo] Text Goes Here Different Text Goes Here \stopbuffer \startxmlsetups xml:xhtml \xmlsetsetup{\xmldocument}{*}{-} \xmlsetsetup{\xmldocument}{html|body}{xml

[NTG-context] Re: xml: matches always child of other element

2023-08-10 Thread Hans Hagen via ntg-context
mlflush{#1}} \xmlflush{#1} \stopindexentry \stopxmlsetups \startxmlsetups xml:index-entry-term-3 % works \expanded{\indexentry{\xmlflush{#1}}} \indexentry{\xmlflush{#1}} \startindexentry{\xmlflush{#1}} \xmlflush{#1} \stopindexentry \stopxmlsetups \startbuffer[test] One Two Three \stopbuffer

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen via ntg-context
- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - % follow up on mail discussion with T \startbuffer[demo

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen via ntg-context
On 8/10/2023 10:37 AM, Hans Hagen wrote: On 8/10/2023 10:14 AM, Thangalin wrote: Here's an MWE: % SOT \startbuffer[demo] Text Goes Here Different Text Goes Here \stopbuffer \startxmlsetups xml:xhtml    \xmlsetsetup{\xmldocument}{*}{-}    \xmlsetsetup{\xmldocument}{html|body}{xml

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen
On 8/10/2023 10:14 AM, Thangalin wrote: Here's an MWE: % SOT \startbuffer[demo] Text Goes Here Different Text Goes Here \stopbuffer \startxmlsetups xml:xhtml \xmlsetsetup{\xmldocument}{*}{-} \xmlsetsetup{\xmldocument}{html|body}{xml:*} \xmlsetsetup{\xmldocument}{div}{xml

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Thangalin
Here's an MWE: % SOT \startbuffer[demo] Text Goes Here Different Text Goes Here \stopbuffer \startxmlsetups xml:xhtml \xmlsetsetup{\xmldocument}{*}{-} \xmlsetsetup{\xmldocument}{html|body}{xml:*} \xmlsetsetup{\xmldocument}{div}{xml:*} \stopxmlsetups \xmlregistersetup{xml:xhtml

[NTG-context] Re: empty line before typebuffer

2023-07-30 Thread Henning Hraban Ramm
Am 30.07.23 um 21:22 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 30.07.2023 um 21:14: Yet another issue: \typebuffer always starts with a blank line. Is this a bug, or how can I disable it? Hraban MWE: """ \starttext \startbuffer \samplefile{tufte} \stopbuff

[NTG-context] Re: empty line before typebuffer

2023-07-30 Thread Jacob Kauffmann via ntg-context
It comes from framedtext: \starttext \startbuffer \samplefile{tufte} \stopbuffer \framedtext[strut=no]{\typebuffer[option=tex]} \stoptext Best, Jacob > Am 30.07.2023 um 21:14 schrieb Henning Hraban Ramm : > > Yet another issue: > > \typebuffer always starts wi

[NTG-context] Re: empty line before typebuffer

2023-07-30 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 30.07.2023 um 21:14: Yet another issue: \typebuffer always starts with a blank line. Is this a bug, or how can I disable it? Hraban MWE: """ \starttext \startbuffer \samplefile{tufte} \stopbuffer \framedtext{\typebuffer[option=t

[NTG-context] empty line before typebuffer

2023-07-30 Thread Henning Hraban Ramm
Yet another issue: \typebuffer always starts with a blank line. Is this a bug, or how can I disable it? Hraban MWE: """ \starttext \startbuffer \samplefile{tufte} \stopbuffer \framedtext{\typebuffer[option=t

[NTG-context] Re: xml: matches always child of other element

2023-07-27 Thread denis.maier
% works \startindexentry{\xmlflush{#1}} \xmlflush{#1} \stopindexentry \stopxmlsetups \startxmlsetups xml:index-entry-term-3 % works \expanded{\indexentry{\xmlflush{#1}}} \indexentry{\xmlflush{#1}} \startindexentry{\xmlflush{#1}} \xmlflush{#1} \stopindexentry \stopxmlsetups \startbuffer[test

[NTG-context] Re: xml: matches always child of other element

2023-07-24 Thread denis.maier
\xmlflush{#1} \stopxmlsetups \startxmlsetups xml:nav-pointer-link \xmlflush{#1} \stopxmlsetups \startbuffer[test] Index First 1 2 3

[NTG-context] xml: matches always child of other element

2023-07-24 Thread denis.maier
}{, } \stopxmlsetups \startxmlsetups xml:nav-pointer \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:nav-pointer-link \xmlflush{#1} \stopxmlsetups \startbuffer[test] Index First 1

[NTG-context] Re: Ukrainian hyphenation?

2023-07-19 Thread Hans Hagen
but not ukrainian. Why? If there was some magick like that going on it should be the reverse right now. That said, \setupbodyfont[dejavu] \startbuffer[sample] Техніка здатна до фізичної поведінки (на відміну від інформаційної поведінки). Наприклад `Металургійний комбінат'. \stopbuffer \starttext

[NTG-context] Re: new upload

2023-07-10 Thread Hans Hagen
27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - vz.pdf Description: Adobe PDF document \starttext \startbuffer[vz-1] \starttext \showframe[text] \enabletrackers

[NTG-context] SVG converter bugs

2023-07-06 Thread Max Chernoff
. I've tested all of the below with the latest ConTeXt. If you give Metapost an out-of-order gradient, it produces an invalid PDF. Both pages in this example: \startbuffer[gradient] http://www.w3

Re: [NTG-context] \getbuffer without extra whitespace?

2023-05-29 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 29.05.2023 um 16:19: If I do something like: \startbuffer[version]20230529a\stopbuffer Version: \getbuffer[version]-en I get whitespace between the content of the buffer and “-en” What is the proper LMTX way to do this? You need the \inlinebuffer

[NTG-context] \getbuffer without extra whitespace?

2023-05-29 Thread Gerben Wierda via ntg-context
If I do something like: \startbuffer[version]20230529a\stopbuffer Version: \getbuffer[version]-en I get whitespace between the content of the buffer and “-en” What is the proper LMTX way to do this? Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R Enterprise Archit

[NTG-context] SVG ViewBox figure battle

2023-05-19 Thread Thangalin via ntg-context
Hi there! The following document contains SVG. Save the SVG as "problem.svg" and run the document through LMTX version 2023.05.08 17:39: % SOF \startbuffer[csvg] \stopbuffer \starttext % honours viewbox \placefigure[none]{}{\includesvgbuffer[csvg]} \page % dishonou

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Wolfgang Schuster via ntg-context
] \definefontfamily [noto-jp] [ss] [Noto Sans CJK JP] \definetypeface   [noto-jp] [mm] [math] [pagella] [default] \setupbodyfont [noto-jp] \mainlanguage [ja] \setscript [nihongo] \starttext \startbuffer 打構セト読役いゆお及層大コモクカ軟毎ホアヲト極書た球87本野ぎレべ襲画売ぎ関負ら断紀チラネキ質紋キタ資私トゃふん。江コキトサ狂毎現ンづ応通サシ続36島性84界ぼゆゃが実書ちぽふず辞躍事シ世図二ハス盛

Re: [NTG-context] characters.tex.toutf bug

2023-03-30 Thread Max Chernoff via ntg-context
it 'tquo' feature that one can enable if wanted > > \definefontfeature[default][default][tlig=yes,tquo=yes,trep=yes] That does make the output more consistent, but not in the way that I'm wanting. My real code looks more like this: \definefontfeature[default][default][tlig=yes, tquo=yes, tr

Re: [NTG-context] characters.tex.toutf bug

2023-03-30 Thread Hans Hagen via ntg-context
g=no, trep=no] \startbuffer[test-bib] @article{one, author = {``Author---\v{O}ne''}, } @article{two, author = {``Author---Two''}, } \stopbuffer \usebtxdataset[test-bib.buffer] \starttext \placelistofpublications[method=dataset] \stoptext

[NTG-context] characters.tex.toutf bug

2023-03-29 Thread Max Chernoff via ntg-context
Hi Hans, "characters.tex.toutf" only works if there is a backslash somewhere in its input string. This leads to some really surprising behaviour in the following example: \definefontfeature[default][tlig=no, trep=no] \startbuffer[test-bib] @article{one, author =

Re: [NTG-context] Automatic numbering of footnotes set with \note (not with \footnote)

2023-03-16 Thread Joaquín Ataz-López via ntg-context
commands. Would there be a simple way so that the automatic numbering follows the order of the \note commands, and not that of \footnotetext? Maybe something with \startbuffer combined with a counter? -- Joaquín Ataz López Departamento de Derecho civil Universidad de Murcia — Bruce Horrocks

Re: [NTG-context] Automatic numbering of footnotes set with \note (not with \footnote)

2023-03-16 Thread Bruce Horrocks via ntg-context
; Would there be a simple way so that the automatic numbering follows the order > of the \note commands, and not that of \footnotetext? Maybe something with > \startbuffer combined with a counter? > > -- > > Joaquín Ataz López > Departamento

[NTG-context] Automatic numbering of footnotes set with \note (not with \footnote)

2023-03-15 Thread Joaquín Ataz López via ntg-context
with \startbuffer combined with a counter? -- Joaquín Ataz López Departamento de Derecho civil Universidad de Murcia ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] How to extend an existing macro to take optional parameters?

2023-03-14 Thread Bruce Horrocks via ntg-context
\def\mycommand#=#=#=#=#:[#5]% > {\ifparameter#1\or(1:#1)\fi > \ifparameter#2\or(2:#2)\fi > \ifparameter#3\or(3:#3)\fi > \ifparameter#4\or(4:#4)\fi > \ifparameter#5\or[5:#5]\fi} > > \startbuffer > \mycommand{aa}{bb}{cc} > \mycommand{aa}{bb}{cc}{dd} > \mycom

Re: [NTG-context] extra lines in PDF annotations

2023-03-14 Thread Pablo Rodriguez via ntg-context
On 3/13/23 22:32, Hans Hagen via ntg-context wrote: >> [...] >> I hope EOLs are fine now. > dunno ... no full example so ... Sorry, Hans, the full example reads: \startbuffer[text] \stopbuffer \savebuffer[text][sample-text.xml, prefix=no] \setupinteract

Re: [NTG-context] How to extend an existing macro to take optional parameters?

2023-03-13 Thread Hans Hagen via ntg-context
\tolerant\def\mycommand#=#=#=#=#:[#5]% {\ifparameter#1\or(1:#1)\fi \ifparameter#2\or(2:#2)\fi \ifparameter#3\or(3:#3)\fi \ifparameter#4\or(4:#4)\fi \ifparameter#5\or[5:#5]\fi} \startbuffer \mycommand{aa}{bb}{cc} \mycommand{aa}{bb}{cc}{dd} \mycommand{aa}{bb}{cc}{dd}[ee] \mycommand

Re: [NTG-context] Float control

2023-03-02 Thread Denis Maier via ntg-context
t; The keys location=left and location=right will also generate a page break if > the figure does not fit. > > In the end, one needs to tweak a document in final form especially if it > contains many figures, unfortunately. This is done by moving the > \startfigure...\stopfigure. Here, the

Re: [NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
again working with XML files: Is it possible that this behaviour is caused by some sort of nested setups which makes the footnotes not bubble up? Best, Denis \startbuffer[test] a2 b a2 b

[NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
for extreme tables. Is that correct? I'll try to narrow it down. Any hints how I could debug that issue? As I'm again working with XML files: Is it possible that this behaviour is caused by some sort of nested setups which makes the footnotes not bubble up? Best, Denis \startbuffer[test

Re: [NTG-context] Float control

2023-03-01 Thread Alan Braslau via ntg-context
In the end, one needs to tweak a document in final form especially if it contains many figures, unfortunately. This is done by moving the \startfigure...\stopfigure. Here, the use of buffers: Paragraph text ... (see \in{figure}[myfigure]). \startbuffer[myfigure] \startfigure[reference=myfigure,

Re: [NTG-context] \xmlmap errors when returning key-value

2023-02-22 Thread Denis Maier via ntg-context
r, now I get an error when I try to return a key-value setting via > xmlmap, see below. Any hints why this does not work > > \xmlmapvalue{colgroupalign}{dir: rtl}{align=rightt

[NTG-context] \xmlmap errors when returning key-value

2023-02-20 Thread Denis Maier via ntg-context
y-value setting via xmlmap, see below. Any hints why this does not work \xmlmapvalue{colgroupalign}{dir: rtl}{align=righttoleft} \xmlmapvalue{colgroupalign}{dir: ltr}{align=lefttoright} as opposed to: \xmlmapvalue{colgroupalig

[NTG-context] Unexpected results with \xmlpos

2023-02-16 Thread Denis Maier via ntg-context
}}{}] \stopxmlsetups Best, Denis \startbuffer[test

Re: [NTG-context] Problem using \scale

2023-02-10 Thread Hans Hagen via ntg-context
\startbuffer[address] Name \crlf Address 1 \crlf A long line that wraps \crlf Town \crlf Postcode \stopbuffer \framed[width=3cm,align=flushleft]{\getbuffer[address]} \framed[width=3cm,align=flushleft]{\scale[factor=fit]{\getbuffer[address]}} \stoptext \starttext \startbuffer[address] Name Address

  1   2   3   4   5   6   7   8   9   10   >